package com.miao.hong.fang.util.aop.advice;

import java.lang.reflect.Method;

import org.springframework.aop.BeforeAdvice;
import org.springframework.aop.AfterReturningAdvice;

import com.miao.hong.fang.course.CourseTO;

public class AdviceTest1{

	public void doBefore(String teacherName1, String teacherDesc2, String teachMajor3) throws Throwable {
		
		System.out.println("aop before");
		System.out.println("teacherName = " + teacherName1);
		System.out.println("teacherDesc = " + teacherDesc2);
		System.out.println("teachMajor = " + teachMajor3);
		System.out.println("aop before done");
	}
	
	public void doAfter1(String teacherName1, String teacherDesc2, String teachMajor3) throws Throwable {
		
		System.out.println("aop after");
		System.out.println("teacherName = " + teacherName1);
		System.out.println("teacherDesc = " + teacherDesc2);
		System.out.println("teachMajor = " + teachMajor3);
		System.out.println("aop after done");
	} 
	
	public void doAfter(CourseTO courseTO) {
		System.out.println("**********Do After**********");
		System.out.println(courseTO.getCourseStartDtAsStr());
	}
	
	
	public void doAfterReturning(){
		System.out.println("**********Do After returning**********");
	}
	
}
